<!DOCTYPE html>
<html>
    <head>
        <title>websocket|test</title>
    </head>
    <body>
        <textarea id="textarea" disabled>???</textarea>
    </body>
    <script>
        textarea=document.getElementById('textarea');
        const ws=new WebSocket('ws://'+window.location.host+'gobang/'+'123'+'/');
        ws.onmessage=function(e){
            textarea.value+='\n'+e.data
        }
    </script>
</html>